<%@ page import="com.hitrust.gs.lib.*" %>
<%@ page import="com.hitrust.gs.bean.*" %>
<%@ page import="com.hitrust.gs.service.*" %>
<%@ page import="com.hitrust.gs.vo.*" %>
<%@ page import="com.hitrust.gs.vo.report.*" %>
<%@ page import="java.util.*" %>
<%@ page import="java.text.*" %>
<%@ page import="org.w3c.dom.*" %>
<%@ page import="org.apache.log4j.*" %>
<%@ page import="com.hitrust.gs.form.*"%>
<%@ page import="com.hitrust.gs.util.menu.*"%>
<%@ page import="com.hitrust.gs.util.*"%>
<%@ page import="com.hitrust.gs.util.lang.*"%>
<%@ page import="com.hitrust.gs.util.date.*"%>
<%@ page import="com.hitrust.gs.util.exception.*"%>
<%@ page import="com.hitrust.gs.util.page.ResultProcess"%>
<%@ page import="com.hitrust.gs.dao.*"%>

<%
	// Set request data code convertion
	request.setCharacterEncoding("UTF-8");

	// Application common variables
	String root = request.getContextPath();
    response.setHeader("Cache-Control", "No-cache");
    response.setHeader("Cache-Control", "no-cache,no-store,max-age=0");
    response.setHeader("Pragma", "No-cache");
    response.setDateHeader("Expires", 0);
    //response.resetBuffer();


    String message = (String)request.getAttribute("message");
    //if(message != null){
    //    out.println("<script>");
    //    out.println("alert('"+message+"')");
    //    out.println("</script>");    
   // } 
%>
<script language=javascript>

    var lBrowser = {};
    lBrowser.agt = navigator.userAgent.toLowerCase();
    lBrowser.isW3C = document.getElementById ? true:false;
    lBrowser.isIE = ((lBrowser.agt.indexOf("msie") != -1) && (lBrowser.agt.indexOf("opera") == -1) && (lBrowser.agt.indexOf("omniweb") == -1));
    lBrowser.isNS6 = lBrowser.isW3C && (navigator.appName=="Netscape") ;
    lBrowser.isOpera = lBrowser.agt.indexOf("opera") != -1;
    lBrowser.isGecko = lBrowser.agt.indexOf("gecko") != -1;
    lBrowser.ieTrueBody =function (){
        return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body;
    };

     //firefox innerText define
    if(lBrowser.isNS6){
        HTMLElement.prototype.__defineGetter__( "innerText", function(){ return this.textContent; } );
        HTMLElement.prototype.__defineSetter__( "innerText", function(sText){ this.textContent=sText; } );
    }
    
    
    /*firefox window.event*/
    function __firefox()
    {
        HTMLElement.prototype.__defineGetter__("runtimeStyle", __element_style);
        window.constructor.prototype.__defineGetter__("event", __window_event);
        Event.prototype.__defineGetter__("srcElement", __event_srcElement);
    }
    
    function __element_style()
    {
        return this.style;
    }
    
    function __window_event()
    {
        return __window_event_constructor();
    }
    
    function __event_srcElement()
    {
        return this.target;
    }
    function __window_event_constructor()
    {
        if(document.all)
        {
            return window.event;
        }
        var _caller = __window_event_constructor.caller;
        while(_caller!=null){
            var _argument = _caller.arguments[0];
            if(_argument){
                var _temp = _argument.constructor;
                if(_temp.toString().indexOf("Event")!=-1)
                {
                    return _argument;
                }
            }
            _caller = _caller.caller;
        }
        return null;
    }
    if(window.addEventListener)
    {
        __firefox();
    }
    /*end firefox.event*/
</script>
<SCRIPT language=javascript src="<%=root%>/framework/js/datePicker/WdatePicker.js"></SCRIPT>
